#!/usr/bin/env python3
"""
启动脚本 - 用于快速启动小说爬虫服务
"""
import uvicorn
from app import app
from config import config
from logger import logger

if __name__ == "__main__":
    logger.info("正在启动小说爬虫服务...")
    logger.info(f"服务地址: http://{config.API_HOST}:{config.API_PORT}")
    logger.info("API文档: http://localhost:8000/docs")

    uvicorn.run(
        "app:app",
        host=config.API_HOST,
        port=config.API_PORT,
        reload=True,
        log_level="info"
    )